package com.jhs.kjs.model.daumMap.dto;

import com.jhs.kjs.dto.util.abstractDTO;


public class Paging extends abstractDTO {
	private final static int unit = 20;
	
	private int start=0;
	private int end=0;
	private int nowSeq=0;
	private int page=1;
	private int totalPage=0;
	private int period=2*60;
	private int carCode;
	private int zoom;
	
	private int yy;
	private int mm;
	private int dd;
	private int hh_start;
	private int mm_start;
	private int hh_end;
	private int mm_end;
	
	private String date;
	private long carGroupCode;
	
	private int selectedMonth;
	private String periodIndex;
	private String groupIndex;

	private double minLat;
	private double minLng;
	private double maxLat;
	private double maxLng;

	public int getStart() {
		if(getPage()>0&&start==0){
			return 1+unit*(getPage()-1);
		}
		return start;
	}
	
	public void setStart(int start) {
		this.start = start;
	}
	
	public int getEnd() {
		if(getPage()>0&&end==0){
			return unit*getPage();
		}
		return end;
	}
	
	public void setEnd(int end) {
		this.end = end;
	}
	
	public int getNowSeq() {
		return nowSeq;
	}
	
	public void setNowSeq(int nowSeq) {
		this.nowSeq = nowSeq;
		int i=0;
		
		for(;unit*i<nowSeq;i++){
			page = i+1;
		}
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getPeriod() {
		return period;
	}
	public void setPeriod(int period) {
		this.period = period;
	}
	public int getCarCode() {
		return carCode;
	}
	public void setCarCode(int carCode) {
		this.carCode = carCode;
	}

	public int getZoom() {
		return zoom;
	}

	public void setZoom(int zoom) {
		this.zoom = zoom;
	}

	public int getYy() {
		return yy;
	}

	public void setYy(int yy) {
		this.yy = yy;
	}

	public int getMm() {
		return mm;
	}

	public void setMm(int mm) {
		this.mm = mm;
	}

	public int getDd() {
		return dd;
	}

	public void setDd(int dd) {
		this.dd = dd;
	}

	public int getHh_start() {
		return hh_start;
	}

	public void setHh_start(int hh_start) {
		this.hh_start = hh_start;
	}

	public int getMm_start() {
		return mm_start;
	}

	public void setMm_start(int mm_start) {
		this.mm_start = mm_start;
	}

	public int getHh_end() {
		return hh_end;
	}

	public void setHh_end(int hh_end) {
		this.hh_end = hh_end;
	}

	public int getMm_end() {
		return mm_end;
	}

	public void setMm_end(int mm_end) {
		this.mm_end = mm_end;
	}

	public double getMinLat() {
		return minLat;
	}

	public void setMinLat(double minLat) {
		this.minLat = minLat;
	}

	public double getMinLng() {
		return minLng;
	}

	public void setMinLng(double minLng) {
		this.minLng = minLng;
	}

	public double getMaxLat() {
		return maxLat;
	}

	public void setMaxLat(double maxLat) {
		this.maxLat = maxLat;
	}

	public double getMaxLng() {
		return maxLng;
	}

	public void setMaxLng(double maxLng) {
		this.maxLng = maxLng;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public long getCarGroupCode() {
		return carGroupCode;
	}

	public void setCarGroupCode(long carGroupCode) {
		this.carGroupCode = carGroupCode;
	}

	public int getSelectedMonth() {
		return selectedMonth;
	}

	public void setSelectedMonth(int selectedMonth) {
		this.selectedMonth = selectedMonth;
	}

	public String getPeriodIndex() {
		return periodIndex;
	}

	public void setPeriodIndex(String periodIndex) {
		this.periodIndex = periodIndex;
	}

	public String getGroupIndex() {
		return groupIndex;
	}

	public void setGroupIndex(String groupIndex) {
		this.groupIndex = groupIndex;
	}
	
}
